﻿<!--addnew/edit form-->
<form name="formEditor">

<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>
<!-- 页面内容标签：如“新增记录”、“修改记录” -->
<tr>
<td>
<div id=tabs>
    <ul>
        <li onclick="changeLiStyle(this);" id="tabsl">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:return false;'>
                <span id="formTitleEditor">修改信息</span>
            </a>
        </li>
    </ul>
    <div id='hline'></div>
</div>
</tr>
</td>
</table>

<FIELDSET><LEGEND>小区楼源信息</LEGEND>
<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>
			<input id="zhuajiu_tuid" name="zhuajiu_tuid" type="hidden" value="${fld:id}" preserve="true">
	<tr>
		<td class="th20 required">小区名称</td>
		<td class="td20left">
				<!--picklist-->
					<input id="location_id" name="location_id" type="hidden" value="">
					<input type="text" id="location_name" name="location_name" size="30" readonly value="">
					<img src="${def:context}/images/search.gif" class="tool"
						onclick="pickOpen('location_name','location_id','${def:context}/action/dq/pick/location/form?display=display:none','400','300','formEditor')"
						title="查询小区名称">
					<img src="${def:context}/images/clear.gif"
						onclick="pickClear('formEditor','location_name','location_id');" class="tool2"
						title="清除选择的内容" >					
		</td>
	</tr>
	<tr>
		<td class="th20 required">户型</td>
		<td class="td20left">
				<!--picklist-->
				<input id="room_type_id" name="room_type_id" type="hidden" value="">
				<input type="text" id="room_type" name="room_type" size="30" readonly value="">
				<img src="${def:context}/images/search.gif" class="tool"
					onclick="pickOpen('room_type','room_type_id','${def:context}/action/dq/pick/roomtype/form?display=display:none','400','250','formEditor')"
					title="查询户型">
				<img src="${def:context}/images/clear.gif"
					onclick="pickClear('formEditor','room_type','room_type_id');" class="tool2"
					title="清除选择的内容" >					
		</td>
	</tr>

	<tr>
		<td class="th20 required">房屋类型</td>
		<td class="td20left">
            <input id="is_high_building" name="is_high_building" type="radio" size="20" maxlength="128" value="0">多层
            <input id="is_high_building" name="is_high_building" type="radio" size="20" maxlength="128" value="1">高层
		</td>
	</tr>

	<tr>
		<td class="th20 required">建筑面积</td>
		<td class="td20left">
            <input id="jianzhu_area" name="jianzhu_area" type="text" size="20" maxlength="128" value="">
		</td>
	</tr>

	<tr>
		<td class="th20 required">结算面积</td>
		<td class="td20left">
            <input id="jiesuan_area" name="jiesuan_area" type="text" size="20" maxlength="128" value="">
		</td>
	</tr>

	<tr>
		<td class="th20">起建日期</td>
		<td class="td20left">
            <input id="start_date" name="start_date" type="text" size="20" maxlength="25" value="" >
				 		<img class="tool" src="${def:context}/images/calendar.gif" title="打开日历.." onclick="calendarOpen('start_date')"> YYYY-MM-DD
		</td>
	</tr>
	<tr>
		<td class="th20">峻工日期</td>
		<td class="td20left">
            <input id="finish_date" name="finish_date" type="text" size="20" maxlength="25" value="" >
				 		<img class="tool" src="${def:context}/images/calendar.gif" title="打开日历.." onclick="calendarOpen('finish_date')"> YYYY-MM-DD
		</td>
	</tr>


	<tr>
		<td class="th20">是否为顶层</td>
		<td class="td20left">
            <input id="is_top_layer" name="is_top_layer" type="radio"  value="0">否
            <input id="is_top_layer" name="is_top_layer" type="radio"  value="1">是
		</td>
	</tr>
	
	<tr>
		<td>
	  <input type="button" class="cmd" value="生成房间号" onclick="getRoom(document.formEditor.layer_no.value,document.formEditor.unit_no_small.value,document.formEditor.serial_no.value,document.formEditor.unit_no.value,document.formEditor.start_unit_no.value,document.formEditor.end_unit_no.value)" id="getroom">
	</td>
		<td>
		<table>
			<tr>
				<td class="th20 required">楼号</td>
				<td class="td20left">
		            <input id="serial_no" name="serial_no" type="text" size="10" maxlength="128" value="">
				</td>
				<td class="th20 required">单元</td>
				<td class="td20left">
		            <input id="unit_no" name="unit_no" type="text" size="10" maxlength="128" value="">
				</td>
				<td class="th20 required">层数</td>
				<td class="td20left">
		            <input id="layer_no" name="layer_no" type="text" size="10" maxlength="128" value="">
				</td>
				<td class="th20 required">单元户数</td>
				<td class="td20left">
		            <input id="unit_no_small" name="unit_no_small" type="text" size="10" maxlength="128" value="">
				</td>

			</tr>
	</table>
	</td>
	</tr>
	<tr>
		<td class="th20 required">房间号</td>
		<td class="td20left">
				<!--picklist-->
				<div id="form_room_list" style="display:;width:100%">
			    <!--这里将填充房间号列表-->            	
        <div>
		</td>
	</tr>

	<tr>
		<td class="th20">备注</td>
		<td class="td20left">
            <input id="remark" name="remark" type="text" size="20" maxlength="128" value="">
		</td>
	</tr>
</TABLE>
</FIELDSET>


<FIELDSET><LEGEND>操作信息</LEGEND>
<TABLE class=table_comm cellSpacing=0 cellPadding=0 width="100%" border=0>
        <col width="80%">
        <col width="20%">
        <!--buttons-->
        <tr>
            <td align="center" colspan=1>
                <input type="button" class="cmd" value="保存" onclick="return save()" id="submitBtn">
                <input type="button" class="cmd" value="返回" onclick="javascript:document.getElementById('divEditor').style.display = 'none';document.getElementById('divFilter').style.display = '';document.getElementById('response').style.display = '';" >
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="deleteCommand" type="button" class="cmd" style="display:none" value="删除"  onclick="deleteRecord(tuid.value)">
            </td>
            <td class="th20 required" colspan=3>
                特别标注为必填信息.
            </td>
        </tr>
    
</table>
</FIELDSET>

    <!--tuid是否为空,决定了form的保存方法为编辑保存,还是新增保存-->
    <input type="hidden" id="tuid" name="tuid" default="0" value="">

</form>
